﻿#ifndef EX_RECEIVER_H
#define EX_RECEIVER_H

#include "support/sp_env.h"
#include "m_fhs.h"

enum PT_Type
{
    PT_Ring=0x11,
    PT_Pop=0x12,
    PT_Say=0x13,
    PT_Emer=0x14,
    PT_Speech=0x15
};

class Receiver : public QObject
{
    Q_OBJECT
public:
    explicit Receiver(QObject *parent = 0);

    void processPendingDatagram();

signals:
    void received(const QString &label,const QString &detail);

private:
    QUdpSocket *receiver;
    QString _label,_detail;
};

#endif // EX_RECEIVER_H
